package test;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Localhost {


    public static void main(String[] args) throws UnknownHostException {


        /*Kt k = new Kt("来自hi为", 20, '0');
        System.out.println(k.toString());*/

        System.out.println(InetAddress.getLocalHost().getHostAddress());
        System.out.println(InetAddress.getLocalHost().getHostName());
    }
}
